<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="lib/vue.js"></script>
</head>
<body>
<div id="app">
    <h1 v-if="isshow">{{message}}</h1>
    <h1 v-else>{{msg}}</h1>
    <button @click="btnclick">点击我</button>
</div>
<script>
    let app = new Vue({
        el:'#app',
        data:{
            message:'Hello world',
            msg:'HELLO WORLD',
            isshow:true
        },
        methods:{
            btnclick(){this.isshow = !this.isshow ,console.log(this.isshow)}
        }
    })
</script>
</body>
</html>
